/* Style Config Manager CSS - 样式配置管理器样式 */

.style-config-app {
    max-width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-y: auto;
}

/* 头部区域 */
.style-config-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.style-config-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.style-config-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* 内容区域 */
.style-config-content {
    padding: 0 0;
    margin-bottom: 20px;
}

/* 配置区段 */
.config-section {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.config-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.section-header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.section-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.section-fields {
    padding: 20px;
}

/* 配置字段 */
.config-field {
    margin-bottom: 20px;
}

.config-field:last-child {
    margin-bottom: 0;
}

.config-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.field-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.config-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    font-family: inherit;
}

.config-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.config-input:hover {
    border-color: #c3cfe2;
    background: white;
}

/* 颜色选择器按钮 */
.color-picker-btn {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-picker-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.color-picker-btn:active {
    transform: scale(0.95);
}

/* 底部区域 */
.style-config-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* 操作按钮 */
.config-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.config-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.config-btn .btn-icon {
    font-size: 16px;
}

.preview-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
}

.preview-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
}

.save-btn {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
}

.reset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.4);
}

.config-btn:active {
    transform: translateY(0);
}

/* 状态显示 */
.config-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.config-status.info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #90caf9;
}

.config-status.success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #388e3c;
    border: 1px solid #81c784;
}

.config-status.error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #d32f2f;
    border: 1px solid #ef5350;
}

.config-status.loading {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #f57c00;
    border: 1px solid #ffb74d;
}

.status-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.status-text {
    flex: 1;
}

/* 加载占位符 */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.loading-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .style-config-header {
        padding: 15px;
        border-radius: 0 0 15px 15px;
    }

    .style-config-header h2 {
        font-size: 20px;
    }

    .style-config-content {
        padding: 0 10px;
    }

    .section-fields {
        padding: 15px;
    }

    .config-actions {
        flex-direction: column;
    }

    .config-btn {
        min-width: auto;
    }

    .field-input-container {
        flex-direction: column;
        align-items: stretch;
    }

    .color-picker-btn {
        align-self: flex-end;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    .style-config-header {
        padding: 12px;
    }

    .style-config-header h2 {
        font-size: 18px;
    }

    .style-config-content {
        padding: 0 8px;
    }

    .section-fields {
        padding: 12px;
    }

    .config-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .color-picker-btn {
        padding: 10px;
        min-width: 40px;
    }
}

/* 动画效果 */
.style-config-app * {
    box-sizing: border-box;
}

.config-section {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 自定义滚动条 */
.style-config-app::-webkit-scrollbar {
    width: 8px;
}

.style-config-app::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.style-config-app::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.style-config-app::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 焦点可访问性 */
.config-btn:focus,
.config-input:focus,
.color-picker-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    .style-config-app {
        background: #f0f0f0;
    }

    .config-section {
        border: 2px solid #333;
    }

    .config-input {
        border: 2px solid #333;
    }

    .config-btn {
        border: 2px solid #333;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .config-section,
    .config-btn,
    .config-input,
    .color-picker-btn {
        transition: none;
        animation: none;
    }

    .loading-icon {
        animation: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .style-config-app {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        color: #ecf0f1;
    }

    .config-section {
        background: #34495e;
        color: #ecf0f1;
    }

    .section-header {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }

    .section-header h3,
    .section-header p {
        color: #ecf0f1;
    }

    .config-input {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }

    .config-input:focus {
        background: #34495e;
        border-color: #3498db;
    }

    .style-config-footer {
        background: #34495e;
        border-color: #2c3e50;
    }

    .loading-text {
        color: #bdc3c7;
    }
}
